import { createSlice } from "@reduxjs/toolkit";

const dictSlice = createSlice({
    name: 'dict',
    initialState: {
        dictInfo: {
            dataGender: [],
            dataRegister: [],
            memberState: [],
            wxState: [],
        }
    },
    reducers: {
        setDict(state, action) {
            state.dictInfo = action.payload
        }
    }
})

export const { setDict } = dictSlice.actions
export default dictSlice